how to generate a cma in ctxmls